var info1objexample=null;

function Createinfo1obj(objname,infocontent,startruncode,runingcode,endruncode,url,isimage,loadwait){
	this.name="";
	this.info1ie=(document.all)?true:false;
	this.info1ns4=(document.layers)?true:false;
	this.infobackgroundobj=null;
	this.infobackgroundobjstyle=null;
	this.infomessageobj=null;
	this.infomessageobjstyle=null;
	this.infogroupobj=null;
	this.infogroupobjstyle=null;
	this.infogrouphtmlobj=null;
	this.infoloadmessageobj=null;
	this.infoloadmessageobjstyle=null;
	this.infoopened=false;
	this.infocontent="";
	this.runingcode="";
	this.endruncode="";
	this.url="";
	this.isimage=false;
	this.loadwait=false;
	this.infowidth=0;
	this.infoheight=0;
	this.infowidthstep=0;
	this.infoheightstep=0;
	this.winWidth=0;
	this.winHeight=0;
	this.selectgroup=new Array();
	this.infodelobj=function(obj){
		if (obj!=null){
			while (obj.hasChildNodes()){
				obj.removeChild(obj.lastChild)
			}
			try{
				obj.removeNode()
			}
			catch(err){
				try{
					var objparent=obj.parentNode;
					objparent.removeChild(obj)
				}
				catch(err){
				}
			}
			obj=null;
		}
	}
	this.infoclose=function(){
		if (this.endruncode != ""){
			var codetext=endruncode.split("^");
			for (var i=0;i<codetext.length;i++){
				eval(codetext[i])
			}
			this.endruncode=""
		}
		if (this.infoloadmessageobj!=null){
			this.infoloadmessageobjstyle=null;
			this.infodelobj(this.infoloadmessageobj)
		}
		if (this.infogrouphtmlobj!=null){
			this.infogrouphtmlobj=null
		}
		if (this.infogroupobj!=null){
			this.infogroupobjstyle=null;
			this.infodelobj(this.infogroupobj)
		}
		if (this.infomessageobj!=null){
			this.infomessageobjstyle=null;
			this.infodelobj(this.infomessageobj)
		}
		if (this.infobackgroundobj!=null){
			this.infobackgroundobjstyle=null;
			this.infodelobj(this.infobackgroundobj)
		}
		this.infocontent="";
		this.runingcode="";
		this.url="";
		this.isimage=false;
		this.loadwait=false;
		this.infowidth=0;
		this.infoheight=0;
		this.infowidthstep=0;
		this.infoheightstep=0;
		this.winWidth=0;
		this.winHeight=0;
		if (this.info1ie){
			var selectobj=document.getElementsByTagName("select");
			for(var i=0;i<selectobj.length;i++){
				if (i<this.selectgroup.length){
					selectobj[i].style.visibility=this.selectgroup[i]
				}
			}
		}
		this.infoopened=false
	}
	this.infobackgroundreset=function(){
		if (this.infoopened){
			if (window.innerWidth){
				this.winWidth=window.innerWidth;
				this.winHeight=window.innerHeight
			}
			else if ((document.body)&&(document.body.clientWidth)){
				this.winWidth=document.body.clientWidth;
				this.winHeight=document.body.clientHeight
			}
			else{
				this.winWidth=0;
				this.winHeight=0
			}
			if (document.documentElement && document.documentElement.clientHeight && document.documentElement.clientWidth){
				this.winWidth=document.documentElement.clientWidth;
				this.winHeight=document.documentElement.clientHeight
			}
			this.infobackgroundobjstyle.width=this.winWidth+"px";
			this.infobackgroundobjstyle.height=this.winHeight+"px";
			window.Obj=this;
			setTimeout("Obj.infobackgroundreset()",20)
		}
	}
	this.infoexpandx=function(){
		if (this.infoopened){
			var infonowwidth=parseInt(this.infomessageobjstyle.width);
			if (infonowwidth+this.infowidthstep<this.infowidth){
				window.Obj=this;
				this.infomessageobj.style.cssText="background:#FFFFFF;float:left;clear:both;z-index:100002;height:"+this.infoheight+"px;width:"+(infonowwidth+this.infowidthstep)+"px;top:"+parseInt((this.winHeight-this.infomessageobj.offsetHeight)/2)+"px;left:"+parseInt((this.winWidth-this.infomessageobj.offsetWidth)/2)+"px;position:fixed;_height:"+this.infoheight+"px;_width:"+(infonowwidth+this.infowidthstep)+"px;_top:expression(documentElement.scrollTop+"+parseInt((this.winHeight-this.infomessageobj.offsetHeight)/2)+");_left:expression(documentElement.scrollTop+"+parseInt((this.winWidth-this.infomessageobj.offsetWidth)/2)+");_position:absolute";
				setTimeout("Obj.infoexpandx()",5)
			}
			else{
				this.infomessageobj.style.cssText="background:#FFFFFF;float:left;clear:both;z-index:100002;height:"+this.infoheight+"px;width:"+this.infowidth+"px;top:"+parseInt((this.winHeight-this.infomessageobj.offsetHeight)/2)+"px;left:"+parseInt((this.winWidth-this.infomessageobj.offsetWidth)/2)+"px;position:fixed;_height:"+this.infoheight+"px;_width:"+this.infowidth+"px;_top:expression(documentElement.scrollTop+"+parseInt((this.winHeight-this.infomessageobj.offsetHeight)/2)+");_left:expression(documentElement.scrollTop+"+parseInt((this.winWidth-this.infomessageobj.offsetWidth)/2)+");_position:absolute";
				this.infogroupobjstyle.display="";
				if (this.runingcode != ""){
					codetext=this.runingcode.split("^");
					for (var i=0;i<codetext.length;i++){
						eval(codetext[i])
					}
				}
			}
		}
	}
	this.infoexpandy=function(){
		if (this.infoopened){
			var infonowheight=parseInt(this.infomessageobjstyle.height);
			if (infonowheight+this.infoheightstep<this.infoheight){
				window.Obj=this;
				this.infomessageobj.style.cssText="background:#FFFFFF;float:left;clear:both;z-index:100002;height:"+(infonowheight+this.infoheightstep)+"px;width:10px;top:"+parseInt((this.winHeight-this.infomessageobj.offsetHeight)/2)+"px;left:"+parseInt((this.winWidth-this.infomessageobj.offsetWidth)/2)+"px;position:fixed;_height:"+(infonowheight+this.infoheightstep)+"px;_width:10px;_top:expression(documentElement.scrollTop+"+parseInt((this.winHeight-this.infomessageobj.offsetHeight)/2)+");_left:expression(documentElement.scrollTop+"+parseInt((this.winWidth-this.infomessageobj.offsetWidth)/2)+");_position:absolute";
				setTimeout("Obj.infoexpandy()",5)
			}
			else{
				this.infomessageobj.style.cssText="background:#FFFFFF;float:left;clear:both;z-index:100002;height:"+this.infoheight+"px;width:10px;top:"+parseInt((this.winHeight-this.infomessageobj.offsetHeight)/2)+"px;left:"+parseInt((this.winWidth-this.infomessageobj.offsetWidth)/2)+"px;position:fixed;_height:"+this.infoheight+"px;_width:10px;_top:expression(documentElement.scrollTop+"+parseInt((this.winHeight-this.infomessageobj.offsetHeight)/2)+");_left:expression(documentElement.scrollTop+"+parseInt((this.winWidth-this.infomessageobj.offsetWidth)/2)+");_position:absolute";
				this.infoexpandx()
			}
		}
	}
	this.infoloaddata=function(obj,heightinfo){
		if (this.infoopened){
			this.infogroupobj.style.cssText="";
			this.infogroupobj.removeAttribute("width");
			this.infogrouphtmlobj.removeAttribute("height");
			this.infowidth=this.infomessageobj.offsetWidth;
			this.infoheight=this.infomessageobj.offsetHeight;
			if (obj != null){
				if (((this.infowidth>(this.winWidth-28))||(this.infoheight>(this.winHeight-28)))&&(this.infowidth>28)&&(this.infoheight>28)){
					if (((this.infowidth-28)/(this.infoheight-28+heightinfo))>((this.winWidth-56)/(this.winHeight-56))){
						this.infoheight=parseInt((this.winWidth-56)/(this.infowidth-28)*(this.infoheight-28))+28;
						this.infowidth=this.winWidth-28
					}
					else{
						this.infowidth=parseInt((this.winHeight-56)/(this.infoheight-28)*(this.infowidth-28))+28;
						this.infoheight=this.winHeight-28
					}
				}
				if (this.info1ns4){
					obj.width=this.infowidth-28;
					obj.height=this.infoheight-heightinfo-28
				}
				else{
					obj.style.width=(this.infowidth-28)+"px";
					obj.style.height=(this.infoheight-heightinfo-28)+"px"
				}
			}
			this.infodelobj(this.infoloadmessageobj);
			this.infogroupobjstyle.display="none";
			this.infowidthstep=parseInt(this.infowidth/30);
			this.infoheightstep=parseInt(this.infoheight/30);
			this.infomessageobj.style.cssText="background:#FFFFFF;float:left;clear:both;z-index:100002;overflow:hidden;height:10px;width:10px;top:"+parseInt((this.winHeight-10)/2)+"px;left:"+parseInt((this.winWidth-10)/2)+"px;position:fixed;_height:10px;_width:10px;_top:expression(documentElement.scrollTop+"+parseInt((this.winWidth-10)/2)+");_left:expression(documentElement.scrollTop+"+parseInt((this.winHeight-10)/2)+");_position:absolute";
			this.infomessageobjstyle.visibility="";
			this.infomessageobj.nowrap=true;
			window.Obj=this;
			setTimeout("Obj.infoexpandy()",5)
		}
	}
	this.infowait=function(){
		if (this.loadwait){
			window.Obj=this;
			setTimeout("Obj.infowait()",5)
		}
		else{
			this.infoloaddata(null,0)
		}
	}
	this.infoload=function(){
		if (this.infoopened){
			this.infomessageobj=document.createElement("div");
			this.infomessageobj.style.cssText="background:#FFFFFF;float:left;clear:both;z-index:100002;position:fixed;_position:absolute;visibility:hidden";
			document.body.appendChild(this.infomessageobj);
			if (this.info1ns4){
				this.infomessageobjstyle=this.infomessageobj
			}
			else{
				this.infomessageobjstyle=this.infomessageobj.style
			}
			this.infogroupobj=document.createElement("table");
			this.infogroupobj.border="0";
			this.infogroupobj.cellSpacing="0";
			this.infogroupobj.cellPadding="0";
			this.infogroupobj.align="center";
			this.infogrouphtmlobj=this.infogroupobj.insertRow(0).insertCell(0);
			this.infogrouphtmlobj.align="center";
			this.infogroupobj.style.cssText="word-break:break-all;table-layout:fixed";
			this.infogroupobj.width=21;
			this.infogrouphtmlobj.height=1;
			if (this.info1ns4){
				this.infogroupobjstyle=this.infogroupobj
			}
			else if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=5){
				this.infogroupobjstyle=this.infogroupobj.style
			}
			else{
				this.infogroupobjstyle=this.infogroupobj.style
			}
			this.infomessageobj.appendChild(this.infogroupobj);
			this.infoloadmessageobj=document.createElement("div");
			this.infoloadmessageobj.id="infoloadmessage";
			this.infoloadmessageobj.style.cssText="background:#FFFFFF;float:left;clear:both;z-index:100001;top:"+parseInt((this.winHeight-120)/2)+"px;left:"+parseInt((this.winWidth-120)/2)+"px;position:fixed;_top:expression(documentElement.scrollTop+"+parseInt((this.winHeight-120)/2)+");_left:expression(documentElement.scrollTop+"+parseInt((this.winHeight-120)/2)+");_position:absolute";
			document.body.appendChild(this.infoloadmessageobj);
			if (this.info1ns4){
				this.infoloadmessageobjstyle=this.infoloadmessageobj
			}
			else{
				this.infoloadmessageobjstyle=this.infoloadmessageobj.style
			}
			this.infoloadmessageobj.innerHTML="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"150\" align=\"center\"><tr height=\"20\"><td></td></tr><tr height=\"60\"><td align=\"center\"><img src=\""+this.url+"loading.gif\" border=\"0\" width=\"32\" height=\"32\" align=\"center\"></td></tr><tr height=\"20\"><td align=\"center\" style=\"color:#000000\">正在加载...</td></tr><tr height=\"20\"><td></td></tr></table>";
			this.infogrouphtmlobj.innerHTML=this.infocontent;
			if (!this.isimage){
				window.Obj=this;
				setTimeout("Obj.infowait()",1000)
			}
		}
	}
	this.infobackgroundset=function(){
		if (this.infoopened){
			if (this.info1ie){
				try{
					this.infobackgroundobj.filters.alpha.opacity+=10;
					if(this.infobackgroundobj.filters.alpha.opacity<80){
						window.Obj=this;
						setTimeout("Obj.infobackgroundset()",50)
					}
					else{
						this.infoload()
					}
				}
				catch(err){
					this.infoload()
				}
			}
			else{
				try{
					var al=parseFloat(this.infobackgroundobj.style.opacity);
					al+=0.1;
					this.infobackgroundobj.style.opacity=al;
					if (al<0.8){
						window.Obj=this;
						setTimeout("Obj.infobackgroundset()",50)
					}
					else{
						this.infoload()
					}
				}
				catch(err){
					this.infoload()
				}
			}
		}
	}
	this.infoinit=function(objname,infocontent,startruncode,runingcode,endruncode,url,isimage,loadwait){
		this.name=objname;
		if (this.infoopened){
			this.infoclose()
		}
		this.infocontent="<table bgcolor=\"#FFFFFF\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr height=\"14\"><td width=\"14\"></td><td></td><td width=\"14\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"14\" height=\"14\"><tr><td align=\"center\"><img src=\""+url+"close.gif\" width=\"10\" height=\"10\" border=\"0\" align=\"center\" onclick=\"javascript:info1objexample.infoclose()\"></td></tr></table></td></tr><tr><td width=\"14\"></td><td bgcolor=\"#000000\" align=\"center\">";
		if (isimage){
			var numobj=new Number(infocontent);
			if (isNaN(numobj)){
				this.infocontent=this.infocontent+"<img src=\""+infocontent+"\" border=\"0\" align=\"0\" onload=\"javascript:" + objname + ".infoloaddata(this,0)\">"
			}
			else if (imagelineinfolength<=0){
				this.infocontent=this.infocontent+"<img src=\""+imagelineinfo[parseInt(infocontent)]+"\" border=\"0\" align=\"0\" onload=\"javascript:" + objname + ".infoloaddata(this,0)\">"
			}
			else{
				this.infocontent=this.infocontent+"<img src=\""+imagelineinfo[parseInt(infocontent)]+"\" border=\"0\" align=\"0\" onload=\"javascript:" + objname + ".infoloaddata(this,20)\"></td><td width=\"14\"></td></tr><tr><td width=\"14\"></td><td bgcolor=\"#000000\" align=\"center\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" height=\"20\" align=\"center\"><tr>";
				if (parseInt(infocontent)>0){
					this.infocontent=this.infocontent+"<td nowrap style=\"font-size:12px\">&nbsp;<a class=\"linewhite\" href=\"javascript:info1obj('" + (parseInt(infocontent)-1) + "','','','','../../public/infoset/info1/',true,false)\">上一张</a>&nbsp;</td>"
				}
				if (parseInt(infocontent)<imagelineinfolength){
					this.infocontent=this.infocontent+"<td nowrap align=\"right\" style=\"font-size:12px\">&nbsp;<a class=\"linewhite\" href=\"javascript:info1obj('" + (parseInt(infocontent)+1) + "','','','','../../public/infoset/info1/',true,false)\">下一张</a>&nbsp;</td>"
				}
				this.infocontent=this.infocontent+"</tr></table></td>"
			}
		}
		else{
			this.infocontent=this.infocontent+infocontent
		}
		this.infocontent=this.infocontent+"</td><td width=\"14\"></td></tr><tr height=\"14\" bgcolor=\"#FFFFFF\"><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"14\" height=\"14\"><tr><td></td></tr></table></td><td></td><td width=\"14\"></td></tr></table>";
		this.runingcode=runingcode;
		this.endruncode=endruncode;
		this.url=url;
		this.isimage=isimage;
		this.loadwait=loadwait;
		if (this.info1ie){
			var selectobj=document.getElementsByTagName("select");
			for(var i=0;i<selectobj.length;i++){
				this.selectgroup[i]=selectobj[i].style.visibility;
				selectobj[i].style.visibility="hidden"
			}
		}
		this.infoopened=true;
		if (startruncode != ""){
			var codetext=startruncode.split("^");
			for (var i=0;i<codetext.length;i++){
				eval(codetext[i])
			}
		}
	}
	this.infoinit(objname,infocontent,startruncode,runingcode,endruncode,url,isimage,loadwait)
}

function info1obj(infocontent,startruncode,runingcode,endruncode,url,isimage,loadwait){
	if (info1objexample==null){
		info1objexample = new Createinfo1obj("info1objexample",infocontent,startruncode,runingcode,endruncode,url,isimage,loadwait)
	}
	else{
		info1objexample.infoinit("info1objexample",infocontent,startruncode,runingcode,endruncode,url,isimage,loadwait)
	}
	info1objexample.infobackgroundobj=document.createElement("div");
	info1objexample.infobackgroundobj.id="infobackground";
	info1objexample.infobackgroundobj.style.cssText="filter:alpha(Opacity=0);-moz-opacity:0;opacity:0;background:#000000;float:left;clear:both;z-index:100001;width:100%;height:100%;top:0px;left:0px;position:fixed;_width:100%;_height:100%;_top:expression(documentElement.scrollTop);_left:expression(documentElement.scrollLeft);_position:absolute";
	document.body.appendChild(info1objexample.infobackgroundobj);
	try{
		info1objexample.infobackgroundobj.attachEvent("onclick",function(){info1objexample.infoclose()},true);
	}
	catch(err){
		info1objexample.infobackgroundobj.onclick=function(){info1objexample.infoclose()}
	}
	if (info1objexample.info1ns4){
		info1objexample.infobackgroundobjstyle=info1objexample.infobackgroundobj
	}
	else{
		info1objexample.infobackgroundobjstyle=info1objexample.infobackgroundobj.style
	}
	info1objexample.infobackgroundreset();
	info1objexample.infobackgroundset()
}

function info1show(){
	info1objexample.loadwait=false
}

function info1close(){
	info1objexample.infoclose()
}